<!-- Page statistics and control buttons area -->
<div class="statsRow">
    <div class="wrapper statsItems">
        <table style="width:100%">
            <tbody>
                <tr>
                    <td>
                        Username: <?php echo $this->user['login']; ?>
                    </td>
                    <td>
                        First name: Hello
                    </td>
                    <td>
                        Last name: World
                    </td>
                    <td>
                        Email: <?php echo $this->user['email']; ?> <a href="#" title="" class="button redB" style="margin: 5px; width:80px;"><img src="/images/icons/light/pencil.png" alt="" class="icon" /><span>Write</span></a>
                    </td>
                </tr>
                <tr>
                    <td>
                        Phone no.: <?php echo $this->user['phone']; ?>
                    </td>
                    <td>
                        Country: <?php //echo $this->user['country'];  ?>
                    </td>
                    <td>
                        Address: <?php echo $this->user['address']; ?>
                    </td>
                    <td>
                        Website: <a href="#" title=""><?php echo $this->user['website']; ?></a>
                    </td>
                </tr>
            <tbody>
        </table>
    </div>
</div>
<div class="line"></div>

<!-- Main content wrapper -->
<div class="wrapper">
    <div class="widget">
        <div class="title"><img src="/images/icons/dark/frames.png" alt="" class="titleIcon" /><h6>Added websites   блок выводиться только если есть добавленные сайты</h6></div>
        <table cellpadding="0" cellspacing="0" width="100%" style="text-align:center" class="sTable">
            <thead>
                <tr>
                    <td>Added:</td>
                    <td>Adress</td>
                    <td>Thematics</td>
                    <td>Keywords</td>
                    <td>Status</td>
                    <td>Management</td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>25.03.14</td>
                    <td><a href="#" title="">www.mysite.com</a></td>
                    <td>sport</td>
                    <td>running, jumping, stumbling, falling</td>
                    <td>Active</td>
                    <td><a href="#" title="" class="button basic"><span>manage</span></a></td>
                </tr>
                <tr>
                    <td>25.03.14</td>
                    <td><a href="#" title="">www.mysite.com</a></td>
                    <td>sport</td>
                    <td>running, jumping, stumbling, falling</td>
                    <td>Active</td>
                    <td><a href="#" title="" class="button basic"><span>manage</span></a></td>
                </tr>
                <tr>
                    <td>25.03.14</td>
                    <td><a href="#" title="">www.mysite.com</a></td>
                    <td>sport</td>
                    <td>running, jumping, stumbling, falling</td>
                    <td>Active</td>
                    <td><a href="#" title="" class="button basic"><span>manage</span></a></td>
                </tr>
                <tr>
                    <td>25.03.14</td>
                    <td><a href="#" title="">www.mysite.com</a></td>
                    <td>sport</td>
                    <td>running, jumping, stumbling, falling</td>
                    <td>Active</td>
                    <td><a href="#" title="" class="button basic"><span>manage</span></a></td>
                </tr>
                <tr>
                    <td>25.03.14</td>
                    <td><a href="#" title="">www.mysite.com</a></td>
                    <td>sport</td>
                    <td>running, jumping, stumbling, falling</td>
                    <td>Active</td>
                    <td><a href="#" title="" class="button basic"><span>manage</span></a></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>

<div class="line" style="margin-top:20px;"></div>
<div class="statsRow">
    <div class="wrapper statsItems">
        <table style="width:100%">
            <tbody>
                <tr>
                    <td>
                        Account balance: 12950$
                    </td>
                    <td>
                        Amount for last period: 234$
                    </td>
                    <td>
                        Status: <?php
if ($this->user['id_status'] == 1) {
    echo 'Active <a href="' . $this->url(array(
        'module' => 'back',
        'controller' => 'admin',
        'action' => 'blockpublisher',
        'id' => $this->user['id'],
        'key' => 1
    )) . '" title="Active" class="button redB"><span>Block</span></a>';
    //если заблокирован - кнопка 'unblock'
} elseif ($this->user['id_status'] == 3) {
    echo 'Block <a href="' . $this->url(array(
        'module' => 'back',
        'controller' => 'admin',
        'action' => 'unblockpublisher',
        'id' => $this->user['id'],
        'key' => 1
    )) . '" title="Unblocked" class="button greenB"><span>Unblock</span></a>';
}
?> 
     
                    </td>
                    <td style="text-align:right">
                        Special Status: Off <a href="#" title="" class="button greenB" style="margin: 5px;"><span>Enable</span></a>
                    </td>
                </tr>
                <tr>
                    <td>
                        Last login time: 05.08.14 15:53
                    </td>
                    <td>
                        Last login IP: 23.632.243.23
                    </td>
                    <td>
                        XML API: Enabled <a href="#" title="" class="button redB" style="margin: 5px;"><span>Disable</span></a>
                    </td>
                    <td style="text-align:right">
                        Warning Status: Not warned <a href="#" title="" class="button dredB" style="margin: 5px;"><span>Warn</span></a>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td style="text-align:right">
                        Captcha Status: On<a href="#" title="" class="button greenB" style="margin: 5px;"><span>Disable</span></a>
                    </td>
                </tr>
            <tbody>
        </table>
    </div>
</div>
<div class="line"></div>

<!-- Main content wrapper -->
<div class="wrapper">
    <!-- Dynamic table -->
    <div class="widget">
        <div class="title"><img src="/images/icons/dark/full2.png" alt="" class="titleIcon" /><h6>Adspace Statistics</h6></div>
        <table cellpadding="0" cellspacing="0" border="0" class="display dTable">
            <thead>
                <tr>
                    <th>Adspace</th>
                    <th>Location</th>
                    <th>Type</th>
                    <th>Clicks</th>
                    <th>Impressions</th>
                    <th>CTR</th>
                    <th>Profit</th>
                    <th>Статус</th>
                    <th>Действия</th>
                </tr>
            </thead>
            <tbody>
                <tr class="gradeA">
                    <td>5378329932</a></td>
                    <td><a href="#" title="">http://logisticway.com/ru/other/features</a></td>
                    <td>Banner</td>
                    <td>N/A</td>
                    <td>65</td>
                    <td>N/A</td>
                    <td>633$</td>
                    <td>Active</td>
                    <td>block</td>
                </tr>
                <tr class="gradeX">
                    <td>566633255</td>
                    <td><a href="#" title="">http://logisticway.com/ru/other/contacts</a></td>
                    <td>Context</td>
                    <td>632</td>
                    <td>N/A</td>
                    <td>5.4%</td>
                    <td>367$</td>
                    <td>Blocked</td>
                    <td>unblock delete</td>
                </tr>
                <tr class="gradeA">
                    <td>5378329932</a></td>
                    <td><a href="#" title="">http://logisticway.com/ru/other/features</a></td>
                    <td>Banner</td>
                    <td>N/A</td>
                    <td>65</td>
                    <td>N/A</td>
                    <td>633$</td>
                    <td>Active</td>
                    <td>block</td>
                </tr>
                <tr class="gradeX">
                    <td>566633255</td>
                    <td><a href="#" title="">http://logisticway.com/ru/other/contacts</a></td>
                    <td>Context</td>
                    <td>632</td>
                    <td>N/A</td>
                    <td>5.4%</td>
                    <td>367$</td>
                    <td>Blocked</td>
                    <td>unblock delete</td>
                </tr>
                <tr class="gradeA">
                    <td>5378329932</a></td>
                    <td><a href="#" title="">http://logisticway.com/ru/other/features</a></td>
                    <td>Banner</td>
                    <td>N/A</td>
                    <td>65</td>
                    <td>N/A</td>
                    <td>633$</td>
                    <td>Active</td>
                    <td>block</td>
                </tr>
                <tr class="gradeX">
                    <td>566633255</td>
                    <td><a href="#" title="">http://logisticway.com/ru/other/contacts</a></td>
                    <td>Context</td>
                    <td>632</td>
                    <td>N/A</td>
                    <td>5.4%</td>
                    <td>367$</td>
                    <td>Blocked</td>
                    <td>unblock delete</td>
                </tr>
            </tbody>
        </table>  
    </div>

    <div class="widgets">	
        <div class="oneTwo">	
            <div class="widget">
                <div class="title"><img src="/images/icons/dark/frames.png" alt="" class="titleIcon" /><h6>Context Overall Statistics</h6></div>
                <table cellpadding="0" cellspacing="0" width="100%" style="text-align:center" class="sTable">
                    <thead>
                        <tr>
                            <td></td>
                            <td>Today</td>
                            <td>Last week</td>
                            <td>Last month</td>
                            <td>All time</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Total ads</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Total Impressions</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Valid Clicks</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>CTR</td>
                            <td>1%</td>
                            <td>1%</td>
                            <td>1%</td>
                            <td>1%</td>
                        </tr>
                        <tr>
                            <td>Click Сost</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Fraud Clicks</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <div class="oneTwo">	
            <div class="widget">
                <div class="title"><img src="/images/icons/dark/frames.png" alt="" class="titleIcon" /><h6>Banners Overall Statistics</h6></div>
                <table cellpadding="0" cellspacing="0" width="100%" style="text-align:center" class="sTable">
                    <thead>
                        <tr>
                            <td></td>
                            <td>Today</td>
                            <td>Last week</td>
                            <td>Last month</td>
                            <td>All time</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Total ads</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Total Impressions</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Valid Impressions</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Impressions Сost</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Fraud Impressions</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <div class="widget">
                <div class="title"><img src="/images/icons/dark/frames.png" alt="" class="titleIcon" /><h6>Social and Blog Overall Statistics</h6></div>
                <table cellpadding="0" cellspacing="0" width="100%" style="text-align:center" class="sTable">
                    <thead>
                        <tr>
                            <td></td>
                            <td>Today</td>
                            <td>Last week</td>
                            <td>Last month</td>
                            <td>All time</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Total ads</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Valid Clicks</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Click Сost</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                        <tr>
                            <td>Fraud Clicks</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                            <td>1</td>
                        </tr>
                    </tbody>
                </table>
            </div>

        </div>

    </div>
    <div class="clear"></div>

    <div class="widget">
        <div class="title"><img src="/images/icons/dark/frames.png" alt="" class="titleIcon" /><h6>Withdrawals history</h6></div>
        <table cellpadding="0" cellspacing="0" width="100%" style="text-align:center" class="sTable">
            <thead>
                <tr>
                    <td>Payment date</td>
                    <td>Amount</td>
                    <td>Currency</td>
                    <td>Payment Gateway</td>
                    <td></td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>23.06.04</td>
                    <td>100</td>
                    <td>USD</td>
                    <td>Webmoney</td>
                    <td><a href="#" title="" class="button basic" style="margin: 5px;"><span>Details</span></a></td>
                </tr>
                <tr>
                    <td>23.06.04</td>
                    <td>100</td>
                    <td>USD</td>
                    <td>Webmoney</td>
                    <td><a href="#" title="" class="button basic" style="margin: 5px;"><span>Details</span></a></td>
                </tr>
                <tr>
                    <td>23.06.04</td>
                    <td>100</td>
                    <td>USD</td>
                    <td>Webmoney</td>
                    <td><a href="#" title="" class="button basic" style="margin: 5px;"><span>Details</span></a></td>
                </tr>
                <tr>
                    <td>23.06.04</td>
                    <td>100</td>
                    <td>USD</td>
                    <td>Webmoney</td>
                    <td><a href="#" title="" class="button basic" style="margin: 5px;"><span>Details</span></a></td>
                </tr>
                <tr>
                    <td>23.06.04</td>
                    <td>100</td>
                    <td>USD</td>
                    <td>Webmoney</td>
                    <td><a href="#" title="" class="button basic" style="margin: 5px;"><span>Details</span></a></td>
                </tr>
                <tr>
                    <td>23.06.04</td>
                    <td>100</td>
                    <td>USD</td>
                    <td>Webmoney</td>
                    <td><a href="#" title="" class="button basic" style="margin: 5px;"><span>Details</span></a></td>
                </tr>
            </tbody>
        </table>
    </div>

</div>